#!/bin/bash

n=1
a=$[RANDOM%100]
while :
do
        read -p "please input bobo's price:" u_price
        if (( $u_price > $a ))
        then
                echo -e  "\e[31mthe price is high\e[0m"
        elif (( $u_price < $a ))
        then
                echo -e "\e[35mthe price is lower\e[0m"
        else
                break
        fi
        ((n++))
done

if (($n == 1))
then
        echo -e "\e[32myou are rulia\e[0m"
elif (( $n > 1 &&  $n <= 5))
then
        echo -e "\e[33myou are wukong\e[0m"
elif (($n >= 10))
then
        echo -e "\e[34myou are bajie\e[0m"
fi

